package net.steam.easyjoboa.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Tickler entity. @author MyEclipse Persistence Tools
 */

public class Tickler implements java.io.Serializable {

	// Fields

	private Integer id;
	private Employee employee;
	private String content;
	private Date TDate;
	private String dateStr;


	// Constructors

	/** default constructor */
	public Tickler() {
	}

	/** full constructor */
	public Tickler(Employee employee, String content, Date TDate) {
		this.employee = employee;
		this.content = content;
		this.TDate = TDate;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTDate() {
		return this.TDate;
	}

	public void setTDate(Date TDate) {
		this.TDate = TDate;
	}
	
	public String getDateStr() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		dateStr = sdf.format(TDate);
		return dateStr;
	}

	public void setDateStr(String dateStr) {
		this.dateStr = dateStr;
	}

}